package edu.wust;

public class No1exam7 {

    public static boolean prime(int x) {
        for(int i=2;i<=Math.sqrt(x);i++){
            if(x%i==0)
                return false;
        }
        return true;
    }

    public static void main(String[] args){
        int count=0,i=1;
        while(count<10001){
            if(prime(++i)){
                count++;
            }
        }
        System.out.println(i);
    }
}
